<template>
    <div>
<van-nav-bar
  title="收藏列表"
  left-arrow
  @click-left="onClickLeft"
/>
    </div>
</template>

<script>
import {collect} from '@/request/http.js'
import { navBar } from "vant";
export default {
     components: {
    [navBar.name]: navBar,

  },
    data() {
        return {

        };
    },
    created() {

    },
    mounted() {
        this.add()
    },
    methods: {
        onClickLeft(){
            this.$router.push("/mine")
        },
        add(){
            // console.log('12321421')
            collect().then(res=>{
            console.log(res)
            })
        }
    }
};
</script>

<style scoped>

</style>
